package com.yc.test.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

@Data
public class BasePO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("默认主键")
    @Id
    private String id;
    @ApiModelProperty("基础库实体的自增id")
    private Long bopId;
    @ApiModelProperty("排序字段")
    private Integer orderNo;
    @ApiModelProperty("是否删除状态")
    private Boolean isDeleted;
    @ApiModelProperty("创建人")
    private String creatorId;
    @ApiModelProperty("创建人名称")
    private String creatorName;
    @ApiModelProperty("创建时间")
    private Long createdTime;
    @ApiModelProperty("修改人")
    private String updatorId;
    @ApiModelProperty("修改人名称")
    private String updatorName;
    @ApiModelProperty("修改时间")
    private Long updatedTime;
    @ApiModelProperty("租户ID")
    private String tenantId;
    @ApiModelProperty("应用ID")
    private String appId;

    public BasePO() {
    }


    public BasePO(BasePO po) {
        this.id = po.getId();
        this.bopId = po.getBopId();
        this.isDeleted = po.getIsDeleted();
        this.creatorId = po.getCreatorId();
        this.creatorName = po.getCreatorName();
        this.createdTime = po.getCreatedTime();
        this.updatorId = po.getUpdatorId();
        this.updatorName = po.getUpdatorName();
        this.updatedTime = po.getUpdatedTime();
        this.tenantId = po.getTenantId();
        this.appId = po.getAppId();
    }
}
